<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <%- include('./common/header.html') %>
  <link rel="stylesheet" href="/lib/quill-2.0.3/quill.snow.css">
  <script src="/lib/quill-2.0.3/quill.js"></script>
  <script src="/assets/js/write.js"></script>
  <title>写博客</title>
</head>

<body>
<%- include('./common/nav.html') %>

<div class="container">
  <div class="col-12 text-center p-4">
    <h1>写博客</h1>
  </div>
  <div class="col-12 m-4">
    <label for="title" class="form-label">博客标题</label>
    <input type="text" id="title" class="form-control" placeholder="请输入标题" maxlength="100">
  </div>
  <div class="col-12 m-4">
    <label for="title" class="form-label">博客内容</label>
    <div id="editor" style="height: 500px;"></div>
  </div>
  <div class="col-12 m-4 d-flex justify-content-end">
    <button class="btn btn-warning me-2" onclick="window.history.back()">后退</button>
    <button class="btn btn-primary me-2" id="postBlog">发表博客</button>
    <button class="btn btn-outline-primary visually-hidden" id="newBlog">再写一篇</button>
  </div>
</div>
</body>

</html>